<?php

$userid         	= get_loggedin_userid();
$interest_id    	= get_input('interest_id');

// params
$tags                   = get_input('tags');
$tags                   = explode(',', $tags);

if($interest_id) {
    add_interest_tags($object_id, $tags);
    echo json_encode(export_result(200, array($rating_id)));
} else {
    echo json_encode(export_result(200, array()));
}
?>